home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_CreateaFont_snippet_142695_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-10-28  |  2KB  |  47 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Create a Font</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Creates a font by using three overloads of the Font constructor.</Description>
  8.       <Shortcut>fontCreate</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <References>
  12.         <Reference>
  13.           <Assembly>System.Drawing.dll</Assembly>
  14.         </Reference>
  15.       </References>
  16.       <Imports>
  17.         <Import>
  18.           <Namespace>Microsoft.VisualBasic</Namespace>
  19.         </Import>
  20.         <Import>
  21.           <Namespace>System.Drawing</Namespace>
  22.         </Import>
  23.       </Imports>
  24.       <Declarations>
  25.         <Literal>
  26.           <ID>fontName</ID>
  27.           <Type>String</Type>
  28.           <ToolTip>Replace with the font name.</ToolTip>
  29.           <Default>"Courier New"</Default>
  30.         </Literal>
  31.         <Literal>
  32.           <ID>fontSize</ID>
  33.           <Type>Integer</Type>
  34.           <ToolTip>Replace with the font size.</ToolTip>
  35.           <Default>12</Default>
  36.         </Literal>
  37.         <Object>
  38.           <ID>fontStyle</ID>
  39.           <Type>FontStyle</Type>
  40.           <ToolTip>Replace with the font style.</ToolTip>
  41.           <Default>FontStyle.Italic</Default>
  42.         </Object>
  43.       </Declarations>
  44.       <Code Language="VB" Kind="method body"><![CDATA[Dim italicFont As New Font($fontName$, $fontSize$, $fontStyle$)]]></Code>
  45.     </Snippet>
  46.   </CodeSnippet>
  47. </CodeSnippets>